using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EuropeEngulfed.NET
{
    partial class WeatherDeterminationDialog : Form
    {
        private GameState.Weather southernWeather;
        private GameState.Weather westernWeather;
        private GameState.Weather easternWeather;

        public WeatherDeterminationDialog(GameTurn.GameDate currentGameDate,GameState.Weather southernWeather, GameState.Weather westernWeather, GameState.Weather easternWeather, MapInfo.gameDateWeatherType weatherType, uint axisDieRoll, uint alliedDieRoll)
        {
            this.southernWeather = southernWeather;
            this.westernWeather = westernWeather;
            this.easternWeather = easternWeather;
            InitializeComponent();
            this.gameDateLabel.Text = GameTurn.GameDateToString(currentGameDate);
            this.dateWeatherPicture.Image = PlayingPieceGraphics.GetTurnWeatherImage(weatherType);
        }

        private void OkButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void WeatherDeterminationDialog_Paint(object sender, PaintEventArgs e)
        {
            PlayingPieceGraphics.PaintWeatherMarker(e.Graphics, westernWeather, new Point(220, 237));
            PlayingPieceGraphics.PaintWeatherMarker(e.Graphics, easternWeather, new Point(220, 320));
            PlayingPieceGraphics.PaintWeatherMarker(e.Graphics, southernWeather, new Point(220, 403));
        }
    }
}